home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 32 lines | [TEXT/GEOL] |
- Item 3779278 15-Feb-91 06:04PST
-
- From: LALEKERMAC CSX Technology, W Laleker,SSF,PAS
-
- To: MACAPP.TECH$ MacApp Technical
- DEVSPT In-house Developer Support
-
- ------------------------------------------------------------------------------
-
- Sub: variable params in C++
-
- Has anyone tried to do this:
-
- I have a C++/MacApp application for which I am writing an exception handler to
- post a small set of alerts. The exception handler is a function, not a method.
- I want the exception handler to work something like printf and take a variable
- list of parameters, using stdarg library routines to get the arguments from the
- stack and format the message. Then I use ParamText to put the message in the
- alert, and MacAppAlert to post the alert.
-
- This all seems to work nicely, but after a while, I start getting very strange
- errors which look very much like memory problems. I have a hunch that the
- stack is messed up by the variable length argument list. Is this reasonable?
-
- Any input/ideas would be greatly appreciated.
-
-
- Thanks,
- Lori Dreyer
- CSX Technology
-
-